package com.deer.wms.busine.tactic.dao;

import com.deer.wms.busine.tactic.model.Upper.UpperTactic;
import com.deer.wms.busine.tactic.model.Upper.UpperTacticCriteria;
import com.deer.wms.busine.tactic.model.Upper.UpperTacticDto;
import com.deer.wms.project.root.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author guo
 */
public interface UpperTacticMapper extends SuperMapper<UpperTactic> {
    List<UpperTacticDto> findList(UpperTacticCriteria criteria);

    List<UpperTactic> findByWareId(Integer wareId);

    /**
     * 根据上架策略号查询
     * @param upperTacticCode 上架策略号
     * @return List<UpperTactic>
     */
    List<UpperTactic> findByUpperTacticCode(@Param("upperTacticCode")String upperTacticCode);

    List<UpperTactic> findByOrganizationAndWare(@Param("organizationId")Integer organizationId, @Param("wareId")Integer wareId);

}